package cn.smbms.dao.user;

import cn.smbms.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserMapperImpl implements UserMapper {

    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    @Override
    public int update(User user) {
        return sqlSession.getMapper(UserMapper.class).update(user);
    }

    @Override
    public int del(User user) {
        return sqlSession.getMapper(UserMapper.class).del(user);
    }

    @Override
    public int uppwd(User user) {
        return sqlSession.getMapper(UserMapper.class).uppwd(user);
    }
}
